<?php

function check_type_available($type, $request_type){
	if (in_array('0', $request_type)) return true;
	
	$array_type = explode(",", $type);
	//show_error($array_type);
	foreach($array_type as $val){
		if (in_array($val, $request_type)) return true;
	}
	return false;
}
